//
//  EJSAccountBillTableViewCell.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2018/1/15.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "EJSAccountBillTableViewCell.h"
#import "EJSBalanceLogModel.h"

@implementation EJSAccountBillTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setBalanceLogModel:(EJSBalanceLogModel *)model{
    self.typeLabel.text = model.typeText;
    if(model.remark){
        self.typeLabel.text = [NSString stringWithFormat:@"%@%@",model.typeText,model.remark];
    }
    self.dateLabel.text = model.createTime;
    self.balanceLabel.text = [NSString stringWithFormat:@"余额：%.2f",model.money.floatValue];
    if(model.amount.floatValue > 0){
        self.amountLabel.textColor = AppPriceTextColor;
    }else{
        self.amountLabel.textColor = UIColorFromRGB(0x3C4151);
        
    }
    self.amountLabel.text = [NSString stringWithFormat:@"€ %.2f",model.amount.floatValue];
}

@end
